# -*- coding: utf-8 -*-
# @Time    : 2019-01-11 13:53
# @Author  : jerry
# @FileName: config.py
# @Software: PyCharm Professional Edition
# @Version : python 3.6.2

SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:1q2w3e4r@10.211.55.6:3306/mysense'
SQLALCHEMY_TRACK_MODIFICATIONS = True

SECRET_KEY = 'mysense_master_key'
AUTH_SALT = '109'


class Config(object):
    @staticmethod
    def init_app(app):
        pass


class DBConfig(Config):
    user = 'root'
    password = '1q2w3e4r'
    db_name = 'mysense'
    host_name = '10.211.55.6'


class DevelopmentConfig(Config):
    DEBUG = True


class ProductionConfig(Config):
    DEBUG = False


config = {
    'development': DevelopmentConfig,
    'production': ProductionConfig
}